struct xsm_operations dummy_xsm_ops;
-#define set_to_dummy_if_null(ops, function) \
- do { \
- if ( !ops->function ) \
- { \
- ops->function = dummy_##function; \
- dprintk(XENLOG_DEBUG, "Had to override the " #function \
- " security operation with the dummy one.\n"); \
- } \
+#define set_to_dummy_if_null(ops, function) \
+ do { \
+ if ( !ops->function ) \
+ { \
+ ops->function = dummy_##function; \
+ if (ops != &dummy_xsm_ops) \
+ dprintk(XENLOG_DEBUG, "Had to override the " #function \
+ " security operation with the dummy one.\n"); \
+ } \
} while (0)
void xsm_fixup_ops (struct xsm_operations *ops)